package com.springbootmybatishw.service;

import com.github.pagehelper.PageInfo;
import com.springbootmybatishw.entity.Student;
import org.springframework.stereotype.Service;

import java.util.List;

public interface StudentService {
    //根据学生姓名查询
    public Student selectStudentByName(String name);

    //查询全体学生
    public List<Student> selectStudentAll();

    PageInfo<Student> selectAllByPage(Integer pageNum, Integer pageSize);

    //增加学生信息
    public int addStudent(Student student);
    //删除学生信息
    public int deleteStudent(Integer id);
    //更新学生信息
    public int editStudent(Student student);
}

